package com.gitee.zhangchenyan.takin.service;

import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface BaseService<T extends BaseEntity, PageParam extends BasePageParam> extends IService<T> {

    boolean remove(T queryEntity);

    boolean update(T updateEntity, T queryEntity);

    T getOne(T queryEntity);

    List<T> getList(T queryEntity);

    long count(T queryEntity);

    List<Map<String, Object>> listMaps(T queryEntity);

    PageResult<T> getPage(PageParam pageParam);
}
